HAL SMBUS state and error functions migration ¶
This section provides information about the HAL SMBUS state and error functions migration.
Get SMBUS state ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_SMBUS_GetState(const SMBUS_HandleTypeDef *hsmbus)
|
HAL_SMBUS_GetState(const hal_smbus_handle_t *hsmbus)
|
related concept: Revised and optimized HAL state machine
Get SMBUS mode ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_SMBUS_GetMode(const SMBUS_HandleTypeDef *hsmbus)
|
HAL_SMBUS_GetMode(const hal_smbus_handle_t *hsmbus);
|
Get SMBUS error code ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_SMBUS_GetError(const SMBUS_HandleTypeDef *hsmbus)
|
HAL_SMBUS_GetLastErrorCodes(const hal_smbus_handle_t *hsmbus)
|
Related concept: Revised and optimized HAL error management